createGame

  • function
 

Sets properties on the game model then persists it to the server. Once the "save" request resolves a new Game instance is created and assigned to game.

viewmodel.createGame(ev)

Sets properties on the game model then persists it to the server. Once the "save" request resolves a new Game instance is created and assigned to game.

Parameters

  1. ev {Event}Optional

    A DOM Level 2 event that preventDefault will be called on.